﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VTS.DAL
{
    public class NamHocDAL
    {
        /// <summary>
        /// get all data from NamHoc Table
        /// </summary>
        /// <returns></returns>
        public List<NamHoc> GetAll()
        {
            VoThiSauDataContext vtsDTX = new VoThiSauDataContext();
            var lstNamHoc = from nh in vtsDTX.NamHocs
                            select nh;
            return lstNamHoc != null ? lstNamHoc.ToList() : null;
        }
    }
}
